wayland: Improve checks when flushing scroll events
authorCarlos Garnacho <carlosg@gnome.org>
Mon, 18 Apr 2016 13:10:49 +0000 (14:10 +0100)
committerCarlos Garnacho <carlosg@gnome.org>
Mon, 18 Apr 2016 13:14:33 +0000 (14:14 +0100)
commitf7108d4d43d233868f4d3dbf7c3b73e19ab1ba05
tree098b05c84314722cf9f9ae99dd22b1d76a178e29
parentbfcd9a2193215cd1b3bcf415c02922e524958bc6
wayland: Improve checks when flushing scroll events

If we get gdk_wayland_seat_flush_frame_event() with no previous event to be
flushed, we fallback into the scroll event checks. However, there's no check
performed there as to whether it really scrolled, so it'd always send a smooth
scroll event with 0/0 deltas in this case.

This should be mostly harmless, but still, we should only end up emitting scroll
events if those really happened.
gdk/wayland/gdkdevice-wayland.c